package com.molichuxing.services.infrastructure.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.AccountDealerBean;

public interface AccountDealerMapper extends RootMapper<AccountDealerBean> {

	List<AccountDealerBean> getAccountDealer(@Param("accountId") Integer accountId);

	/**
	 * 根据经销商id获得经销商下的用户id集合
	 * @param param
	 * @return
	 */
	List<AccountDealerBean> getAccountDealerByParam(@Param("param") Map<String, Object> param);

	int createAccountDealer(AccountDealerBean bean);

	int deleteByAccountId(@Param("accountId")int accountId);
}